package com.exchange.websocket.common.exchangeutils;

import com.exchange.websocket.common.utils.redis.RedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * ExampleMain
 *
 * @author simazilin
 * @date 2018/7/12
 */
@EnableAsync // 开启异步任务支持
public class ExampleMain {

    public static void main(final String[] args) {
        // apiKey 为用户申请的apiKey
        String apiKey = "dfbb23da-5cac-4bec-b4ce-ed828f8a5458";
        // secretKey为用户申请的secretKey
        String secretKey = "B0FA4F10E14364A0C7562DDFBBFD432C";

        String urlOK = "wss://real.okex.com:10441/websocket";
        String urlHuoBi = "wss://api.huobi.pro:443/ws";
        String urlFcoin = "wss://ws.fcoin.com:443/api/v2/ws";
        String urlHitbtc = "wss://api.hitbtc.com:443/api/2/ws";

//        new Thread(new Runnable() {
//            @Override
//            public void run() {
//                FcoinWebsocketClient fcoinWebsocketClient = new FcoinWebsocketClient();
//                fcoinWebsocketClient.startClient(urlFcoin);
//            }
//        }).start();
//        new Thread(new Runnable() {
//            @Override
//            public void run() {
//                HitbtcWebsocketClient hitbtcWebsocketClient = new HitbtcWebsocketClient();
//                hitbtcWebsocketClient.startClient(urlHitbtc);
//            }
//        }).start();
//        new Thread(new Runnable() {
//            @Override
//            public void run() {
//                HuobiWebsocketClient huobiWebsocketClient = new HuobiWebsocketClient();
//                huobiWebsocketClient.startClient(urlHuoBi);
//            }
//        }).start();
//        new Thread(new Runnable() {
//            @Override
//            public void run() {
//                BitstampWebSocketClient bitstampWebSocketClient = new BitstampWebSocketClient();
//            }
//        }).start();
//        new Thread(new Runnable() {
//            @Override
//            public void run() {
//                QuoinexWebSocketClient quoinexWebSocketClient = new QuoinexWebSocketClient();
//
//            }
//        }).start();
    }
}
